package com.aiti.lulian.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("员工名片")
@TableName("card_enterprise_user_data")
public class CardEnterpriseUserData implements Serializable {

    /**
     * 主键ID
     */
    @ApiModelProperty("baseId")
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private String baseId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("企业ID")
    @TableField("enterprise_id")
    private String enterpriseId;

    @ApiModelProperty("发布名片数量")
    @TableField("pub_count")
    private Long pubCount;

    @ApiModelProperty("被查看名片数量")
    @TableField("view_count")
    private Long viewCount;

    @ApiModelProperty("创建人ID")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("创建日期")
    @TableField(value = "base_create_time", fill = FieldFill.INSERT)
    private Date baseCreateTime;

    @ApiModelProperty("修改人ID")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("修改日期")
    @TableField(value = "base_update_time", fill = FieldFill.UPDATE)
    private Date baseUpdateTime;

    @ApiModelProperty("删除状态")
    @TableLogic(value = "0", delval = "1")
    private String isDelete;

    /** '1'：企业认证，'2'：后台添加，'3'：小程序编辑*/
    @ApiModelProperty("来源")
    @TableField("source")
    private String source;

    /** 今日新增*/
    private Long toDayCount;

    /** 昨日新增 */
    private Long yesterdayCount;

    @TableField(exist = false)
    private String userName;
}